﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="PostDetail.aspx.cs" Inherits="PostBoard_PostDetail" Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        $(function() {
            $("#dialog").dialog({ autoOpen: false, modal: true, bgiframe: true });
            $('#dialog').bind('dialogclose', function(event, ui) {
                $("#ifrLayer").height(0);
                window.parent.refresh();
            });

        });
        function attendClass() {
            $("#dialog").dialog({
                height: 250, width: 350
            }).dialog("open")
            .parent().appendTo("#dialog_target");
            $("#ifrLayer").height(400);
        }

        function editInfo() {
            var width = 330;
            var height = 400;
            window.open("NewPostDetail.aspx?PostID=<%=PostID %>&Nocache=" + Math.random(), "newwindow", 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,left=' + (screen.width - width) / 2 + ',top=' + (screen.height - height) / 2);
        }
       
    </script>

    <style type="text/css">
        .FieldName
        {
            width: 70px;
        }
        .FieldInput
        {
            width: 130px;
        }
        .TextArea01
        {
            height: 60px;
            width: 80%;
        }
        #Table2 .DetailTitle
        {
            height: auto;
        }
        #Table2 .TextArea01
        {
            height: 70px;
            width: 80%;
            background: #F4F9FF;
            overflow-y: visible;
        }
        .hideIfrm
        {
            display: none;
            _display: block;
            position: absolute;
            top: 0;
            left: 0px;
            z-index: 1000;
            filter: mask();
            width: 400px;
            height: 0px;
            border: 1px solid red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="留言详情" Selected="true" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
 <div style="display: none;">
        <asp:Literal runat="server" ID="tbOrderID"></asp:Literal>
        <div id="dialog" title="提交成功！" class="ui-dialog">
            <table width="100%">
               
                <tr>
                    <td colspan="2" align="center">
                        <br />
                        <span style="color:Blue">
                            您的报名信息已经提交审核，请耐心等待审核结果！
                        </span>
                    </td>
                </tr>
            </table>
        </div>
        <asp:Button runat="server" ID="btnRefresh" OnClick="btnRefresh_Click" />
    </div>
    <div id="dialog_target">
    </div>
    <%--<iframe frameborder="0" id="ifrLayer" class="hideIfrm"></iframe>--%>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <div id="MainContent2" class="ScrollDiv">
                    <table id="tblDetail" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>留言标题：</strong></a>
                                    <asp:Literal ID="lbPostTitle" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>留言内容：</strong></a>
                                    <asp:Literal ID="lbPostContent" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>联系方式：</strong></a>
                                    <asp:Literal ID="lbLinkAddress" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>提交时间： </strong></a>
                                    <asp:Literal ID="lbPostTime" runat="server"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; var tblTopContent = document.getElementById("tblTopContent");
    var tblDetail = document.getElementById("tblDetail"); var MainContent2 = document.getElementById("MainContent");
    MainContent2.style.height=(height- 100 - tblTopContent.offsetHeight - tblDetail.offsetHeight)+"px";
    var width = document.body.clientWidth; if(width > 20) document.getElementById("MainContent").style.width=
    (width-5) + "px";
</asp:Content>
